package day12.demo1;

/**
 * @Auther:小陈的Java
 */
public class ThreadDemo1 extends Thread {
    public static void main(String[] args) {
        Thread thread = new ThreadDemo1("线程1");
        thread.start();
    }
    @Override
    public void run() {
        System.out.println("子线程名字："+this.getName());
    }
    public ThreadDemo1(String name) {
        super(name);
    }
}
